package com.sayyi.validate.constraints;

import org.hibernate.validator.constraintvalidation.HibernateConstraintValidator;
import org.hibernate.validator.constraintvalidation.HibernateConstraintValidatorInitializationContext;

import javax.validation.ConstraintValidatorContext;
import javax.validation.metadata.ConstraintDescriptor;
import java.util.Date;

/**
 * @author xuchuang
 * date 2021/12/2 3:38 下午
 */
public class CheckCaseValidatorDate implements HibernateConstraintValidator<CheckCase, Date> {
    @Override
    public boolean isValid(Date value, ConstraintValidatorContext context) {

        return false;
    }

    @Override
    public void initialize(ConstraintDescriptor<CheckCase> constraintDescriptor, HibernateConstraintValidatorInitializationContext initializationContext) {
        HibernateConstraintValidator.super.initialize(constraintDescriptor, initializationContext);
    }
}
